<div class="p10 col-xs-12" ng-controller="roleCtrl">
    <div class="col-xs-12 BGFFF p20 r5">
        <div class="col-xs-6 f16 fb p0 mb5">角色管理</div>
        <div class="col-xs-6 f14 p0 mb5 tr">
            <a type="button" class="btn btn-primary btn-sm" id="refresh" ng-click="getData(list.page.currentPage)"> <i
                    class="iconfont fb">&#xe6aa;&nbsp;</i>刷新</a>
            <a type="button" class="btn btn-adorn btn-sm" onclick="history.back(-1);"> <i class="iconfont fb">&#xe697;&nbsp;</i>后退</a>
        </div>
        <div class="col-xs-12 bb1 bt1 pt15 p0 pb10">
            <button type="button" class="ml5 mt1 btn btn-success btn-sm fr" ng-click="getData(1);">
                <i class="iconfont">&#xe6ac;</i>&nbsp;查询
            </button>
            <div class="form-group w200 fr">
                <label class="sr-only" for="">名称</label>
                <div class="input-group">
                    <div class="input-group-addon">名称</div>
                    <input type="text" class="form-control input-xs dis-in-blo w120"
                           placeholder="名称" id="roleName">
                </div>
            </div>
            <div class="cb"></div>
        </div>
        <div class="col-xs-3 f16 fb pl0 mb10 pb5 mt20">角色列表</div>
        <div class="col-xs-9 mt20 p0 mb10 f14 tr">
            <a type="button" class="btn btn-success btn-sm cursor" ng-if="showOperation('ROLE','');"
               ng-click="detail('新增角色',700,'admin/role/detail.do?id=NULL')">
                <i class="iconfont fb">&#xe604;</i>&nbsp;新增
            </a>
        </div>

        <div class="col-xs-12 p0">
            <table class="table table-bordered table-hover">
                <thead>
                <tr class="BGEEE">
                    <th class="tc w200">名称</th>
                    <th class="tc">权限</th>
                    <td class="tc">排序</td>
                    <th class="w200 tc">操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="item in list">
                    <td class="tc">{{item.roleName}}</td>
                    <td class="tc" title="{{item.authName}}">{{item.authName| cut:true:50:' ...'}}</td>
                    <td class="tc">{{item.sequence}}</td>
                    <td class="tc">
                        <a class="f12 text-primary mr10 cursor" ng-if="showOperation('ROLE','');"
                           ng-click="detail('编辑【'+item.roleName+'】',700,'admin/role/detail.do?id='+item.id)"
                           data-toggle="tooltip" data-placement="top"
                           data-original-title="编辑"> <i class="iconfont f12">&#xe69e;修改</i>
                        </a>
                        <a class="f12 text-danger mr10 cursor" title="删除" ng-if="showOperation('ROLE','');"
                           ng-click="del('admin/role/delete.do?id='+item.id,item.roleName)">
                            <i class="iconfont f12">&#xe69d;删除</i>
                        </a>
                    </td>
                </tr>

                </tbody>
            </table>
            <div ui-view="page"></div>
        </div>
    </div>
</div>
<div class="cb"></div>

